package com.css.zfzx.sjcj.common.excel.handler;

import cn.afterturn.easypoi.excel.entity.result.ExcelVerifyHandlerResult;
import cn.afterturn.easypoi.handler.inter.IExcelVerifyHandler;
import com.css.zfzx.sjcj.common.excel.entity.ActiveFaultVerifyExcelBaseModel;
import com.css.zfzx.sjcj.common.excel.util.ActiveFaultEasyExcelVerifyHelper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class ActiveFaultVerifyBaseHandler implements IExcelVerifyHandler<ActiveFaultVerifyExcelBaseModel> {

    private final ActiveFaultEasyExcelVerifyHelper verifyHelper;

    @Autowired
    public ActiveFaultVerifyBaseHandler(ActiveFaultEasyExcelVerifyHelper verifyHelper) {
        this.verifyHelper = verifyHelper;
    }

    @Override
    public ExcelVerifyHandlerResult verifyHandler(ActiveFaultVerifyExcelBaseModel base) {
        return verifyHelper.verify(base);
    }

}
